﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Library_Code.BIZ;

namespace Library_Code.DAL
{
    
    public class LoaiSPDAL
    {
        BabyToysDB db = new BabyToysDB();
        public List<LOAISP> Load_AllLoaiSP()
        {
            return db.LOAISPs.ToList();
        }
        public int ThemLoaiSP( LOAISP loaisp)
        {
            db.LOAISPs.Add(loaisp);
            return db.SaveChanges();
        }
       
        
    }
}
